package com.edol.painting.ad;

/*  =======================================================================================
 *  Copyright (C) 2017 dlboard.com. All rights reserved.
 *
 *  This computer program source code file is protected by copyright law and international
 *  treaties. Unauthorized distribution of source code files, programs, or portion of the
 *  package, may result in severe civil and criminal penalties, and will be prosecuted to
 *  the maximum extent under the law.
 *
 *  ---------------------------------------------------------------------------------------
 * Author:Administrator
 * Date:2017/7/9
 * Desc:
 *
 * ======================================================================================== */
public class YouMi {
    public static String TAG = "YouMi";

    //闪屏广告显示成功
    public static boolean mSplashAdShowed = false;

    public final static String app_id = "b690bbe4a2ad1444";
    public final static String app_secret = "bc6b31ca08177dc7";

    //channel id
    public static final String pid_91 = "10110";
    public static final String pid_hiapk = "10030"; //安卓市场
    public static final String pid_gfan = "10020"; //机锋市场
    public static final String pid_goapk = "10010"; //安智市场
    public static final String pid_appChina = "10050"; //掌上应用汇
    public static final String pid_mumayi = "10070"; //木蚂蚁市场
    public static final String pid_eoe = "10120"; //优亿市场
    public static final String pid_nduo = "10060"; //N 多市场
    public static final String pid_huawei = "10220"; //华为智汇云

    public static final String pid_QQ = "10360"; //腾讯应用
    public static final String pid_3G = "10140"; //3G 安卓市场
    public static final String pid_360 = "10190"; //360 应用
    public static final String pid_UC = "10250"; //UC 应用商店
    public static final String pid_xiaomi = "10440"; //小米市场
    public static final String pid_mmw = "10130"; //移动 MM 商店
    public static final String pid_lenovo = "10040"; //联想乐商店

    /**
     * 设置插屏广告
     */
    /*public static void setupSpotAd(Context mContext) {
        // 设置插屏图片类型，默认竖图
        //		// 横图
        //		SpotManager.getInstance(mContext).setImageType(SpotManager
        // .IMAGE_TYPE_HORIZONTAL);
        // 竖图
        SpotManager.getInstance(mContext).setImageType(SpotManager.IMAGE_TYPE_VERTICAL);

        // 设置动画类型，默认高级动画
        //		// 无动画
        //		SpotManager.getInstance(mContext).setAnimationType(SpotManager
        // .ANIMATION_TYPE_NONE);
        //		// 简单动画
        //		SpotManager.getInstance(mContext).setAnimationType(SpotManager
        // .ANIMATION_TYPE_SIMPLE);
        // 高级动画
        SpotManager.getInstance(mContext)
                .setAnimationType(SpotManager.ANIMATION_TYPE_ADVANCED);

        // 展示插屏广告
        SpotManager.getInstance(mContext).showSpot(mContext, new SpotListener() {

            @Override
            public void onShowSuccess() {
                Logger.i(TAG, "onShowSuccess");
            }

            @Override
            public void onShowFailed(int errorCode) {
                Logger.i(TAG, "onShowFailed:"+errorCode);
                switch (errorCode) {
                    case ErrorCode.NON_NETWORK:
                        Logger.i(TAG, "onShowFailed: NON_NETWORK");
                        break;
                    case ErrorCode.NON_AD:
                        Logger.i(TAG, "onShowFailed: NON_AD");
                        break;
                    case ErrorCode.RESOURCE_NOT_READY:
                        Logger.i(TAG, "onShowFailed: RESOURCE_NOT_READY");
                        break;
                    case ErrorCode.SHOW_INTERVAL_LIMITED:
                        Logger.i(TAG, "onShowFailed: SHOW_INTERVAL_LIMITED");
                        break;
                    case ErrorCode.WIDGET_NOT_IN_VISIBILITY_STATE:
                        Logger.i(TAG, "onShowFailed: WIDGET_NOT_IN_VISIBILITY_STATE");
                        break;
                    default:
                        Logger.i(TAG, "onShowFailed try again:");
                        break;
                }
            }

            @Override
            public void onSpotClosed() {
                Logger.i(TAG, "onSpotClosed:");
            }

            @Override
            public void onSpotClicked(boolean isWebPage) {
                Logger.i(TAG, "onSpotClicked:");
                Logger.i(TAG, "is web ad？" + (isWebPage ? "yes" : "no"));
            }
        });
    }*/

}
